package com.atlatl.gwt.client.mapquest;

public interface MQRoutingListener {
	/**
	 * 
	 * @param collection
	 *            a collection of maneuvers that will get your from the
	 *            origination address to the destination address.
	 */
	public void onSuccess(MQManeuverCollection collection);

	/**
	 * The status attribute of the Response node summarizes the high-level
	 * success of the transaction.
	 * 
	 * If 0, there were no errors or unusual conditions.
	 * 
	 * If 1, ambiguous geocoding results are included.
	 * 
	 * If 2, at least one geocoded address was a single location match although
	 * not exactly as entered.
	 * 
	 * If 4, at least one geocoded address returned no location matches at all.
	 * 
	 * If 8, there is a route gap between either the origin and the actual start
	 * of the route or between the end of the route and the destination.
	 * 
	 * @param statusCode
	 */
	public void onFailure(String statusCode);
}
